import request from '@/utils/request'

// 查询每日科普列表
export function listSci(query) {
  return request({
    url: '/system/sci/list',
    method: 'get',
    params: query
  })
}

// 查询每日科普详细
export function getSci(id) {
  return request({
    url: '/system/sci/' + id,
    method: 'get'
  })
}

// 新增每日科普
export function addSci(data) {
  return request({
    url: '/system/sci',
    method: 'post',
    data: data
  })
}

// 修改每日科普
export function updateSci(data) {
  return request({
    url: '/system/sci',
    method: 'put',
    data: data
  })
}

// 删除每日科普
export function delSci(id) {
  return request({
    url: '/system/sci/' + id,
    method: 'delete'
  })
}
